package gui.dialogs;

import java.awt.EventQueue;

import javax.swing.JDialog;
import net.miginfocom.swing.MigLayout;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class About extends JDialog {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6404141335407266182L;

	/**
	 * Create the dialog.
	 */
	public About() {
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new MigLayout("", "[grow]", "[][][]"));
		
		JLabel lblRouterManager = new JLabel("Router Manager");
		getContentPane().add(lblRouterManager, "cell 0 0,alignx center");
		
		JLabel lblAuthorRadosawWyrolak = new JLabel("Author: Rados\u0142aw Wyro\u015Blak");
		getContentPane().add(lblAuthorRadosawWyrolak, "cell 0 1,alignx center");
		
		JButton btnOk = new JButton("OK");
		btnOk.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
			}
		});
		getContentPane().add(btnOk, "cell 0 2,alignx right");

	}

}
